package com.gzsxy.sso.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzsxy.sso.core.entity.Function;
import com.sun.org.apache.xpath.internal.operations.Bool;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface FunctionMapper extends BaseMapper<Function> {

    /**
     * @description: 是否存在相同功能名
     * @param
     * @return
     */
    Boolean existByFuncName(@Param("appId") String appId, @Param("name") String name);

    /**
     * @description: 该应用下检查是否存在功能
     * @param
     * @return
     */
    Boolean existByAppId(String appId);
}
